package com.klangner.go.model.impl;

import junit.framework.TestCase;

import com.klangner.go.model.BoardPosition;
import com.klangner.go.model.IBoard;
import com.klangner.go.model.impl.StonesGroup;


public class StonesGroupTest extends TestCase{

	/**
	 * single
	 */
	public void testSingleLiberty() {
		StonesGroup	group = new StonesGroup(IBoard.BLACK_STONE);
		
		group.addLiberty(new BoardPosition(1, 1));
		
		assertEquals(1, group.getLiberties().size());
	}
	
	/**
	 * the same
	 */
	public void testTheSame() {
		StonesGroup	group = new StonesGroup(IBoard.BLACK_STONE);
		
		group.addLiberty(new BoardPosition(1, 1));
		group.addLiberty(new BoardPosition(1, 1));
		
		assertEquals(1, group.getLiberties().size());
	}
	
}
